<!DOCTYPE html>
<html lang="en">
<head>
  <link href='http://fonts.googleapis.com/css?family=Nokora' rel='stylesheet' type='text/css'>
  </head>
  
  <?php 
	$code = 123;
	$text1 = mysql_real_escape_string($_POST['text1']);
	if($code == $text1){
		header("Location:index.php");
	}else{
		echo "Invalid Code";
	}
	
  ?>
  
 <body>
	  <div style="width:100%">
		<div style="width:500px; margin:0 auto;">
		<form method="POST" action="">
			<table width="350" cellpadding="3" cellspacing="0" border="0">
				<tr>
					<td>Enter Code:</td>
					<td><input type="text" name="text1" width="20"/></td>
					<td></td>
					<td><input type="submit" name="submit" value="Login" style="width:50px; height:30px"/></td>
				</tr>
			
			</table>
			</form>
		</div>
	  </div>
	
  </body>
  
  </html>